package com.redsun.smallworld.gl.controls.moudle;

import com.google.common.collect.Lists;
import com.redsun.smallworld.gl.controls.parent.SuperControl;
import com.redsun.smallworld.gl.controls.parent.SuperControlFactory;

import java.util.List;

/**
 * Created by zhebinwang on 2017/6/2.
 */
public class Scene {

    private int sceneId; //场景编号
    private String sceneName; //场景名称
    private List<ControlInfo> controlInfoList;

    private List<SuperControl> superControls;



    public int fullSuperControls(){
        superControls= Lists.newArrayList();
        for (int x=0;x<controlInfoList.size();x++){
            superControls.add(SuperControlFactory.createSuperControl(controlInfoList.get(x)));
        }
        return 0 ;
    }


    public List<SuperControl> getSuperControls() {
        return superControls;
    }

    public Scene setSuperControls(List<SuperControl> superControls) {
        this.superControls = superControls;
        return this;
    }

    public List<ControlInfo> getControlInfoList() {
        return controlInfoList;
    }

    public Scene setControlInfoList(List<ControlInfo> controlInfoList) {
        this.controlInfoList = controlInfoList;
        return this;
    }

    public int getSceneId() {
        return sceneId;
    }

    public Scene setSceneId(int sceneId) {
        this.sceneId = sceneId;
        return this;
    }

    public String getSceneName() {
        return sceneName;
    }

    public Scene setSceneName(String sceneName) {
        this.sceneName = sceneName;
        return this;
    }
}
